package com.blackcattle.data.migrate.mongo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 源Mongo连接配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "data.migrate.mongo.source")
public class SourceConfig {
    private String host;
    private String port;
    private String database;
    private String authDb;
    private String username;
    private String password;

    private String collection;
    private String findCommand;
    private String sortCommand;
    /**
     * 增量同步字段
     * :sql_last_value
     */
    private String incrementField;
    /**
     * 增量同步初始值
     */
    private String incrementInit;
    /**
     * 增量同步替换字符
     */
    private String incrementReplace;

    private Integer limit;

}
